<?=$this->render('header.phtml') ?>

<?=$this->render('logo.phtml') ?>


<h2>User Manager</h2>

<p class="message"><span style="font-weight: bold;">Please Note</span> that in order to reset a password you must know the current one.</p>

<h3>Add a User</h3>

<form method="post" action="<?= $this->url(array('action' => 'add'), 'admin') ?>">
	<p><label for="username">Username:</label> <input type="text" name="username" id="username" size="20" /></p>
	<p><label for="password">Password:</label> <input type="password" name="password" id="password" size="20" /></p>
	<p><label for="role">Role:</label> <select name="role" id="role">
	<?php foreach (NerdPass_Acl::getRoles() as $rolen => $rolev): ?>
		<option value="<?=$rolen?>"><?=$rolev?></option>
	<?php endforeach; ?>
	</select></p>
	<p><label for="apiid">API ID:</label> <input type="text" name="apiid" id="apiid" size="10" /></p>
	<p><label for="sigkey">Signature Key:</label> <input type="text" name="sigkey" id="sigkey" size="30" /></p>
	<p><label for="otp">Yubikey OTP:</label> <input type="text" name="otp" id="otp" size="35" /></p>
	
	<p><input type="submit" value="Add User" /></p>
</form>


<?=$this->render('footer.phtml') ?>